﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using NIIT.SaoBacDau.Aupi.HospitalManagement.Languages;
using NIIT.SaoBacDau.Aupi.HospitalManagement.Entities;

namespace NIIT.SaoBacDau.Aupi.HospitalManagement
{
    public partial class PrintListPatient : Form
    {
        public PrintListPatient(List<Pa_Patient> ListPatient, List<D_OrganizationDetails> ListOrg)
        {
            InitializeComponent();
        }

        private void btn_Close_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void PrintListPatient_Load(object sender, EventArgs e)
        {
            cbx_TypeTreatment.SelectedIndex = 0;
            cbx_Soft.SelectedIndex = 0;
        }

        private void btn_Print_Click(object sender, EventArgs e)
        {
            if (LibraryLanguages.Print() == true)
                SoftPrint();
        }

        private void SoftPrint()
        {
            if ((cbx_TypeTreatment.SelectedIndex == 0) && (cbx_Soft.SelectedIndex == 0))
                PrintPatient(1, 1);
            else if ((cbx_TypeTreatment.SelectedIndex == 0) && (cbx_Soft.SelectedIndex == 1))
                PrintPatient(1, 2);
            else if ((cbx_TypeTreatment.SelectedIndex == 1) && (cbx_Soft.SelectedIndex == 0))
                PrintPatient(2, 1);
            else if ((cbx_TypeTreatment.SelectedIndex == 1) && (cbx_Soft.SelectedIndex == 1))
                PrintPatient(2, 2);
            else
                PrintPatient(1, 1);
        }

        private void PrintPatient(int type1, int soft)
        {
            throw new NotImplementedException();
        }
    }
}
